// 导出路由规则
import Layout from '@/layout'

export default {
  path: '/marketing',
  name: 'marketing',
  component: Layout, // 给路由规则加名字
  redirect: '/marketing', // 组件
  meta: {
    title: '营销管理',
    icon: 'tree'
  },
  // 配置二级路由表
  children: [{
    path: 'coupon',
    name: 'coupon',
    component: () => import('@/views/marketing/coupon'),
    meta: { title: '优惠券', noCache: true }
  }, {
    path: 'recharge',
    name: 'recharge',
    component: () => import('@/views/marketing/recharge'),
    meta: { title: '充值赠送', noCache: true }
  }, {
    path: 'rechargeExchange',
    name: 'rechargeExchange',
    component: () => import('@/views/marketing/rechargeExchange'),
    meta: { title: '充值卡管理', noCache: true }
  }, {
    path: 'RegistrationGifts',
    name: 'RegistrationGifts',
    component: () => import('@/views/marketing/RegistrationGifts'),
    meta: { title: '注册赠送', noCache: true }
  }]
}
